package no.sachmuld.methodcombination.examples.reflection.scalatraitstyle;

import no.sachmuld.methodcombination.api.MethodInvocation;

/**
 *
 */
public class Mocha extends BeverageTrait {

    @Override
    public double cost(MethodInvocation<Double> methodInvocation) {
        return methodInvocation.proceed() + 0.4;
    }

    @Override
    public String toString(MethodInvocation<String> methodInvocation) {
        return methodInvocation.proceed() + " with Mocha";
    }

}

